]> dgit.raspbian.org Git - gnome-shell.git/commit
xdnd: Don't wait for the stage to be disabled when it is already visible
authorAdel Gadllah <adel.gadllah@gmail.com>
Fri, 22 Feb 2013 18:26:17 +0000 (19:26 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 22 Feb 2013 18:37:40 +0000 (19:37 +0100)
commitf644bee83195f7d094ed75e8d8e2b414be39cc96
treea33c95b0f5d15f59636e4994395506f142e024ec
parent6fcc7e3e2379ff342ebac9365e3faeeab0c8000d
xdnd: Don't wait for the stage to be disabled when it is already visible

xdndHandler used to wait for the stage to show up before calling
global.init_xdnd() . Since commit 65303d027aa8 xdndHandler is initalized
later so the stage might be already visible at this point causing the
show signal never to be emitted and thus global.init_xdnd will never
be called.

Fix that by checking by calling global.init_xdnd without waiting for
the stage's show signal to be emitted, as the stage is guaranted to be
visible at this point.
js/ui/xdndHandler.js